package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.repository.LockRepository
import javax.inject.Inject

class UpdateLockStatusUseCase @Inject constructor(
    private val repository: LockRepository
) {
    suspend operator fun invoke(lockId: Long, status: Int, remark: String?): NetworkResult<Unit> {
        return repository.updateLockStatus(lockId, status, remark)
    }
}
